/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.vo;

import java.io.Serial;
import java.io.Serializable;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.comac.ins.isfd.domain.IsfdDatasourceTaskFieldMapping;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;


/**
 * 数据源数据集成任务字段映射视图对象 isfd_datasource_task_field_mapping
 *
 * @author Lion Li
 * @date 2024-10-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = IsfdDatasourceTaskFieldMapping.class)
public class IsfdDatasourceTaskFieldMappingVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 目标配置ID，关联target_config表
     */
    @ExcelProperty(value = "目标配置ID，关联target_config表")
    private Long targetId;

    /**
     * 源表字段
     */
    @ExcelProperty(value = "源表字段")
    private String sourceField;

    /**
     * 源表字段所属表名/集合名
     */
    @ExcelProperty(value = "源表字段所属表名/集合名")
    private String sourceTableName;

    /**
     * 目标字段
     */
    @ExcelProperty(value = "目标字段")
    private String targetField;

    /**
     * 目标字段所属表名/集合名
     */
    @ExcelProperty(value = "目标字段所属表名/集合名")
    private String targetTableName;

    /**
     * 字段类型（例如Long、String等）
     */
    @ExcelProperty(value = "字段类型")
    private String fieldType;

    /**
     * 字段长度
     */
    @ExcelProperty(value = "字段长度")
    private Long fieldLength;

    /**
     * 是否删除，0-未删除，1-已删除
     */
    @ExcelProperty(value = "是否删除，0-未删除，1-已删除")
    private Integer isDeleted;


}
